class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age
    def show_info(self):
        print(f"姓名：{self.name}，年龄：{self.age}")
# 测试
person = Person("张三", 20)
person.show_info()